calculate factorial of number
public class factorial { public static void main(String[] args) { int num = 6; …
public class factorial { public static void main(String[] args) { int num = 6; …
public class even_or_odd { public static void main(String[] args) { int num1=22; …
public class Average { public static void main(String[] args) { int mar=56; …
public class Area_of_circle { public static void main(String[] args) { int r=5; …
public class SumofAlldiviser { public static void main(String[] args) { int L=1; int R=20…
public class SumofTwonum { public static void main(String[] args) { int fnum=10; int snum…
public class SimpleAsterisk { public static void main(String[] args) { for (int i = 0; i <…
Integer class is a wrapper for int. If it is not marked final, then any other class can extend it…
Differences between Abstract class and Interface are as follows: 1. An abstract class can have im…
A final method cannot be overridden. But an interface method has to be implemented by another clas…
Yes, from Java 8 onwards, we can define static and default methods in an interface. Prior to Java …
An Interface in Java is an abstract type blueprint of a class. It contains the methods that a cla…
No. We cannot create an instance of an abstract class in Java.
No. It will be contradictory statement to mark a method abstract as well as final. An abstract me…
No. Java specification says that if there is at least one abstract method in a class, the class h…
An abstract class in Java has one or more abstract methods. An abstract method is just declared i…
Abstraction happens at class level design. It results in hiding the implementation details. Encap…
Abstraction is the process of hiding certain implementation details of an object and showing only…
In Static binding references are resolved at compile time. In Dynamic binding references are reso…
Runtime Polymorphism or Dynamic Polymorphism is the polymorphism that exists at runtime. In case …